/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cz.muni.dao;

import cz.muni.entities.Customer;
import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author OSiRiS-PC
 */
@Local
public interface CustomerDaoLocal {
    
    public List<Customer> findByFirstName(String fistName);
    public List<Customer> findByLastName(String lastName);
    public List<Customer> findByEmail(String email);
    public List<Customer> findByPhoneNumber(String number);
    void create(Customer customer);
    void delete(Customer customer);
    Customer find(Long id);
    Customer update(Customer customer);
    List<Customer> findAll();
      
}
